package tech.eyao.hs60x.push;

import java.io.IOException;

import com.google.zxing.WriterException;

public class TestImage {
		
	public static void main(String[] args) {
		String content="http://www.baidu.com";
	     String logUri="e://temp/20171014125015.jpg";
	     String outFileUri="E://temp//1.jpg";
	     int[]  size=new int[]{430,430};
	     String format = "jpg";  
	     
	       try {
	        new CodeImageFactory().creatImage(content, format, outFileUri, logUri,size);
	    } catch (IOException e) {
	        e.printStackTrace();
	    } catch (WriterException e) {
	        e.printStackTrace();
	    }
	}
}